package com.tedu.review.day02;

import java.io.Serializable;

/**
 * 重点：JavaBean  Java实体类|Java豆
 */
public class Person implements Serializable {
    private String name;  //成员变量未赋值【没有初始化】
    private int age;
    private char sex;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                '}';
    }

    //设置set和get方法：设置属性|成员变量的获取以及设置方法
    //属性值：传输不清楚内部数据
}
